<?php

/** @var \Laravel\Lumen\Routing\Router $router */

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It is a breeze. Simply tell Lumen the URIs it should respond to
| and give it the Closure to call when that URI is requested.
|
*/

$router->get('/', function () use ($router) {
    return $router->app->prepareResponse("Forbidden!!!122");
    return $router->app->prepareResponse("Forbidden!!!123");
});


$api = $router->app;

$router->group(['prefix' => 'dev-api', 'middleware' => 'AdminRoust'], function ($api) {
    // $api->get('sllogview', 'LogViewerController@index');            //日志管理
    $api->get('captchaImage', 'VerificateController@captchaImageNew'); //图形验证码
    $api->get('captcha/{type}/{uid}', 'VerificateController@index'); //图形验证码
    $api->get('test', 'TestController@index'); //测试调试
    $api->get('clearJobs', 'TestController@jobsCheck'); //测试调试
    $api->get('duilieMoren', 'TestController@duilieMoren'); //图形验证码
});
$router->group(['prefix' => 'dev-api', 'namespace' => 'Admin', 'middleware' => 'AdminRoust'], function ($api) {
    $api->post('login', 'LoginController@login');
//    企业微信授权登陆
    $api->get('loginQywx', 'LoginQywxController@index');
    $api->post('logout', 'LoginController@logout');
    $api->post('register', 'LoginController@register');
    $api->post('registerSend', 'LoginController@sendregisterYanZhengMa');
    $api->post('loginSend', 'LoginController@sendloginYanZhengMa');
    $api->post('loginSms', 'LoginController@loginSms');
    $api->post('registerSms', 'LoginController@registerSms');


});
$router->group(['prefix' => 'dev-api', 'middleware' => 'XSSFilter|AdminRoust'], function ($api) {
    // 订单查询用户身份证号
    $api->get('getUserIdcard', 'VeriController@index');
    $api->get('setGetUserIp', 'VeriController@setIp');

});
$router->group(['prefix' => 'dev-api', 'middleware' => 'XSSFilter|adminLogin|adminRole|AdminRoust'], function ($api) {
    // 图片上传
//    $api->post('uplodePic', 'UploadController@upload');
    $api->post('uploadPic', 'UploadController@upload');
    $api->post('uploadPdf', 'UploadController@uploadPdf');
    $api->post('uploadMp3', 'UploadController@uploadMp3');
});
$router->group(['prefix' => 'dev-api', 'namespace' => 'Admin', 'middleware' => 'XSSFilter|adminLogin|adminRole|AdminRoust'], function ($api) {
    // $api->post('login', 'LoginController@login');
    $api->get('getInfo', 'LoginController@getInfo');
    // $api->get('getRouters', 'LoginController@getRouters');
//图表数据
    $api->get('dashboard', 'DashboardController@index');
    $api->get('chatReport', 'ChatController@index');
    // 用户列表
    $api->get('supervisorOptionsList', 'AdminUsersController@supervisorOptionsList');
    $api->get('userList', 'AdminUsersController@index');
    $api->put('userChangeStatus', 'AdminUsersController@changeStatus');
    $api->post('userProfileAvatar', 'AdminUsersController@userProfileAvatar');
    $api->put('updatePwd', 'AdminUsersController@updatePwd');
    $api->post('updateOnline', 'AdminUsersController@updateOnline');
    // 不在某个里面的条件
    $api->get('userListNo', 'AdminUserController@noInList');
    // $api->get('user', 'AdminUserController@index');
    $api->get('user', 'AdminUsersController@getUser');
    $api->put('user', 'AdminUsersController@edit');
    $api->delete('user/{id}', 'AdminUsersController@del');
    $api->get('user/{id}', 'AdminUsersController@getOneUser');
    $api->post('user', 'AdminUsersController@store');
    $api->get('userAuthRole/{id}', 'AdminUsersController@userAuthRole');
    $api->put('userResetPwd', 'AdminUsersController@userResetPwd');
    $api->put('resetUser', 'AdminUsersController@resetUser');
    $api->put('userResetExpPwd', 'AdminUsersController@userResetExpPwd');
    $api->get('userProfile', 'AdminUsersController@userProfile');
    $api->put('userProfile', 'AdminUsersController@userEditProfile');

    // 维修
    $api->get('repairList', 'RepairController@index');
    // $api->get('deptListExclude/{id}', 'DeptController@excludeIndex');
    $api->post('repair', 'RepairController@store');
    $api->put('repair', 'RepairController@save');
    $api->get('repair/{id}', 'RepairController@show');
    $api->delete('repair/{id}', 'RepairController@destroy');
    //供应商
    $api->get('suppilerList', 'SuppilerController@index');
    $api->post('suppiler', 'SuppilerController@store');
    $api->put('suppiler', 'SuppilerController@save');
    $api->get('suppiler/{id}', 'SuppilerController@show');
    $api->delete('suppiler/{id}', 'SuppilerController@destroy');
    // 供应商的商品
    $api->get('suppilerGoods/{id}', 'SuppilerController@suppilerGoods');
    $api->post('suppilerGoods', 'SuppilerController@addSuppilerGoods'); // 添加失败
    // 分销商
    $api->get('distributorsList', 'DistributorsController@index');
    $api->post('distributors', 'DistributorsController@store');
    $api->put('distributors', 'DistributorsController@save');
    $api->get('distributors/{id}', 'DistributorsController@show');
    $api->delete('distributors/{id}', 'DistributorsController@destroy');
    // 分销商商品限制设置  限制条件  默认的自己可见
    $api->get('distGoodsSetList', 'DistGodsSetController@index');
    $api->post('distGoodsSet', 'DistGodsSetController@store');
    $api->put('distGoodsSet', 'DistGodsSetController@save');
    $api->get('distGoodsSet/{id}', 'DistGodsSetController@show');
    $api->delete('distGoodsSet/{id}', 'DistGodsSetController@destroy');
    // 分销商商品查看
    $api->get('distGoods/{id}', 'SuppilerController@distGoods');
    // $api->post('distGoods', 'SuppilerController@addSuppilerGoods'); // 添加失败
    //产品
    $api->get('productList', 'ProductController@index');
    $api->get('productAllList', 'ProductController@getAllData'); // 查询所有的产品
    $api->post('product', 'ProductController@store');
    $api->put('product', 'ProductController@save');
    $api->get('product/{id}', 'ProductController@show');
    $api->delete('product/{id}', 'ProductController@destroy');
    $api->post('updateProductStatus/{id}', 'ProductController@updateStatus');
    $api->get('getAllDataWhere', 'ProductController@getAllDataWhere');
    $api->get('productOptionsList', 'ProductController@productOptionsList');
    $api->get('productPageSelectOptionsList', 'ProductController@index');
    //商品
    $api->get('goodsList', 'GoodsController@index');
    $api->get('goodsAllListOptionsList', 'GoodsController@listss'); //查询某个店铺所有的商品
    $api->post('goods', 'GoodsController@store');
    $api->put('goods', 'GoodsController@save');
    $api->get('goods/{id}', 'GoodsController@show');
    $api->delete('goods/{id}', 'GoodsController@destroy');
    $api->post('goodsStatus/{id}', 'GoodsController@updateStatus');
    // 查询操作记录
    $api->get('goodsLog/{id}', 'GoodsController@showLog');
    //订单 查询
    // $api->get('orderList', 'OrderController@index');
    // $api->get('orderListDist', 'OrderController@indexDist');
    // $api->post('order', 'OrderController@store');
    // $api->put('order', 'OrderController@save');
    // $api->get('order/{id}', 'OrderController@show'); 这个订单暂时不需要了
    $api->get('orderList', 'OrdersController@index');
//    转给我待我处理的订单
//    $api->get('transferToMeOrders', 'OrdersController@index');
//    我重新写
    $api->post('orders/reviewRechargeIt', 'OrdersController@reviewRechargeIt');
    $api->post('orders/dataReviewIt', 'OrdersController@dataReviewIt');
//    日志查询
    $api->get('orders/logs', 'Logs\IndexController@index');
//    订单流转
    $api->post('ordersTransfer/add', 'OrdersTransferController@store');
    $api->get('ordersTransfer/logs', 'OrdersTransferController@logs');
    $api->post('ordersTransfer/dispose', 'OrdersTransferController@dispose');

    $api->get('orderListDist', 'OrdersController@indexDist');
    $api->get('orderListDistClass', 'OrdersController@orderListDistClass');
    $api->post('getEncryp', 'OrdersController@getEncryp'); // 加密数据
    $api->post('order', 'OrdersController@store');
    $api->put('order', 'OrdersController@save');

    $api->get('order/{id}', 'OrdersController@show');
    $api->delete('order/{id}', 'OrdersController@destroy'); // 订单没有删除
    $api->get('getOrderSource', 'OrdersController@getOrderSource'); // OrderController 修改成了 OrdersController
    $api->get('getOrderStatus', 'OrdersController@getOrderStatus'); // OrderController 修改成了 OrdersController
    $api->post('getOrderExcel', 'OrdersController@getOrderExcel'); // OrderController 修改成了 OrdersController
    $api->post('editOrderBatch', 'OrdersController@updateAllGoods');  // OrderController 修改成了 OrdersController
    $api->post('editOrderDistBatch', 'OrdersController@updateAllGoodsDist'); // 分销商商品修改
    $api->post('editOrderResubmit', 'OrdersController@updateEditSubmit');
    $api->post('editOrderDist', 'OrdersController@updateEditDist'); // 修改分销商
    // $api->post('financeOrderSel', 'OrderInfoController@index'); // 财务订单查询 弃用
    $api->post('financeOrderSel', 'OrderUserController@index'); // 财务订单查询
    // $api->post('editOrderDist', 'OrderController@updateEditDist'); // 修改分销商
    // $api->put('orderDist', 'OrderController@saveDist'); // 分销商修改商品
    $api->put('orderDist', 'OrdersController@saveDist'); // 分销商修改商品
//    $api->put('orderStatus', 'OrdersController@saveStatus'); // 修改订单状态旧方式
    //    已合并到changeOrdersInfo
//    $api->post('changeOrdersStatus', 'Orders\HandlesController@changeStatus'); // 修改订单状态.新
    $api->put('changeOrdersRemark', 'Orders\HandlesController@changeRemark'); // 修改备注信息
//    拉黑订单
    $api->put('changeOrdersBlocking', 'Orders\HandlesController@changeBlocking');
    $api->put('changeOrdersInfo', 'Orders\HandlesController@changeInfo');
//    已合并到changeOrdersInfo
//    $api->post('changeOrdersGoodsInfo', 'Orders\HandlesController@changeGoodsInfo');
    $api->put('getTaggingAll', 'OrdersController@getTaggingAll'); // 修改备注信息
    //重新提交数据
    // $api->post('getOrderResubmit', 'OrderController@getOrderResubmit');
    $api->post('getOrderResubmit', 'OrdersController@getOrderResubmit');

    // 查询所有的订单
    $api->get('getAllOrder', 'AllOrderController@index');
    // 查询老系统的订单
    $api->get('getOldOder', 'AllOrderController@getOldOder');
    // 查询上游订单
    $api->get('getSupOder', 'AllOrderController@getSupOrder');
    // 查询抖音订单
    $api->get('getDouYinOder', 'AllOrderController@getDouYinOrder');
    // 查询导入的订单
    $api->get('getExcelOder', 'OrdersOldController@index');
    // $api->post('getOrderDis', 'OrderController@getOrderDis');
    $api->post('getOrderDisOptionsList', 'OrdersController@getOrderDis');
    $api->post('getOrderDisClass', 'OrdersController@getOrderDisClass');

    $api->get('getOrderInfo/{id}', 'OrderController@getOrderInfo');
    // 订单导出
    $api->post('orderExport', 'OrderExportController@store');
    $api->get('orderExportList', 'OrderExportController@index');
    $api->post('orderExportYzm', 'OrderExportController@sendYzm'); // 发送验证码
    $api->post('orderExportPath', 'OrderExportController@getPath'); // 获取连接
    //订单导入 也得一个表 为了记录  待开发
    $api->get('moreOrderList', 'MoreOrderController@index');
    $api->post('moreOrder', 'MoreOrderController@store');
    $api->put('moreOrder', 'MoreOrderController@save');
    $api->get('moreOrder/{id}', 'MoreOrderController@show');
    $api->delete('moreOrder/{id}', 'MoreOrderController@destroy'); // 订单没有删除
    $api->post('orderMoreimportData', 'MoreOrderController@import');
    // 抓单管理  也是一个订单表 跟 记录每天抓取单的数量  待开发
    $api->get('catchOrderList', 'catchOrderController@index');
    $api->post('catchOrder', 'catchOrderController@store');
    $api->put('catchOrder', 'catchOrderController@save');
    $api->get('catchOrder/{id}', 'catchOrderController@show');
    $api->delete('catchOrder/{id}', 'catchOrderController@destroy'); // 订单没有删除

    //生产管理
    $api->get('deliverList', 'DeliverController@index');
    $api->post('deliver', 'DeliverController@store');
    $api->put('deliver', 'DeliverController@save');
    $api->get('deliver/{id}', 'DeliverController@show');
    $api->delete('deliver/{id}', 'DeliverController@destroy'); // 订单没有删除
    // 接口设置
    $api->get('deliverIntList', 'DeliverIntController@index');
    $api->post('deliverInt', 'DeliverIntController@store');
    $api->put('deliverInt', 'DeliverIntController@save');
    $api->get('deliverInt/{id}', 'DeliverIntController@show');
    $api->delete('deliverInt/{id}', 'DeliverIntController@destroy'); // 订单没有删除
    // 获取资源
    $api->post('getResourceid', 'DeliverIntController@getResourceid');
    $api->get('getChannelName', 'DeliverIntController@getChannelName');
    // 生产审核
    $api->get('wayExamList', 'WayExamController@index');
    $api->post('wayExam', 'WayExamController@store');
    $api->put('wayExam', 'WayExamController@save');
    $api->get('wayExam/{id}', 'WayExamController@show');
    $api->delete('wayExam/{id}', 'WayExamController@destroy'); // 订单没有删除
    // 生产审核
    $api->get('wayExamTwoList', 'WayExamTwoController@index');
    $api->post('wayExamTwo', 'WayExamTwoController@store');
    $api->put('wayExamTwo', 'WayExamTwoController@save');
    $api->get('wayExamTwo/{id}', 'WayExamTwoController@show');
    $api->delete('wayExamTwo/{id}', 'WayExamTwoController@destroy'); // 订单没有删除
    // 获取通道所有的数据
    $api->get('getAllChannelOptionsList', 'GetWayController@listss');
    // 抓单管理 拼多多
    $api->get('catchOrderList', 'CatchOrderController@index');
    $api->post('catchOrder', 'CatchOrderController@store');
    $api->put('catchOrder', 'CatchOrderController@save');
    $api->get('catchOrder/{id}', 'CatchOrderController@show');
    $api->delete('catchOrder/{id}', 'CatchOrderController@destroy'); // 订单没有删除
    $api->get('catchOrderListAll', 'CatchOrderController@getAll');
    // 拼多多
    $api->get('pddConfList', 'CatchOrderPddController@index');
    $api->post('pddConf', 'CatchOrderPddController@store');
    $api->put('pddConf', 'CatchOrderPddController@save');
    $api->get('pddConf/{id}', 'CatchOrderPddController@show');
    $api->delete('pddConf/{id}', 'CatchOrderPddController@destroy'); // 订单没有删除
    $api->get('pddConfListAll', 'CatchOrderPddController@getAll');
    // 快手管理
    $api->get('kwaiList', 'CatchOrderKwaiController@index');
    $api->post('kwai', 'CatchOrderKwaiController@store');
    $api->put('kwai', 'CatchOrderKwaiController@save');
    $api->get('kwai/{id}', 'CatchOrderKwaiController@show');
    $api->delete('kwai/{id}', 'CatchOrderKwaiController@destroy'); // 订单没有删除
    $api->get('kwaiListAll', 'CatchOrderKwaiController@getAll');
    // 京东管理
    $api->get('JingDongList', 'CatchOrderJingDongController@index');
    $api->post('JingDong', 'CatchOrderJingDongController@store');
    $api->put('JingDong', 'CatchOrderJingDongController@save');
    $api->get('JingDong/{id}', 'CatchOrderJingDongController@show');
    $api->delete('JingDong/{id}', 'CatchOrderJingDongController@destroy'); // 订单没有删除
    $api->get('JingDongListAll', 'CatchOrderJingDongController@getAll');
    // 天猫管理
    $api->get('tMallList', 'CatchOrderTMallController@index');
    $api->post('tMall', 'CatchOrderTMallController@store');
    $api->put('tMall', 'CatchOrderTMallController@save');
    $api->get('tMall/{id}', 'CatchOrderTMallController@show');
    $api->delete('tMall/{id}', 'CatchOrderTMallController@destroy'); // 订单没有删除
    $api->get('tMallListAll', 'CatchOrderTMallController@getAll');
    // 首页统计
    $api->get('goodsDetails', 'WelcomeController@index');
    // 短信功能
    // 模板设置 短信发送模板设置
    $api->get('messageTmpList', 'MessageTmpController@index');
    $api->get('messageTmpOptionsList', 'MessageTmpController@index');
    $api->post('messageTmp', 'MessageTmpController@store');
    $api->put('messageTmp', 'MessageTmpController@save');
    $api->post('messageTmpRefresh', 'MessageTmpController@refresh');
    $api->get('messageTmp/{id}', 'MessageTmpController@show');
    $api->delete('messageTmp/{id}', 'MessageTmpController@destroy');
    // 短信分销商设置
    $api->get('messageAgentList', 'MessageAgentController@index');
    $api->post('messageAgent', 'MessageAgentController@store');
    $api->put('messageAgent', 'MessageAgentController@save');
    $api->get('messageAgent/{id}', 'MessageAgentController@show');
    $api->delete('messageAgent/{id}', 'MessageAgentController@destroy');
    // 短信发送记录
    $api->get('messageSendList', 'MessageSendController@index');
    $api->get('serviceCallTask/messageSendList', 'MessageSendController@index');
    $api->put('messageSendList', 'MessageSendController@save');
    // 短信发送配置
    $api->get('messageSendConfList', 'MessageSendConfController@index');
    $api->post('messageSendConf', 'MessageSendConfController@store');
    $api->put('messageSendConf', 'MessageSendConfController@save');
    $api->get('messageSendConf/{id}', 'MessageSendConfController@show');
    $api->delete('messageSendConf/{id}', 'MessageSendConfController@destroy');
    // 短信回复
    $api->get('messageReplyList', 'MessageReplyController@index');
    $api->get('messageReply/{id}', 'MessageReplyController@show');
    $api->put('messageReply', 'MessageReplyController@save');
    // 核算支出
    $api->get('userLog', 'AdminUsersLogController@index');
    $api->get('userLogType', 'AdminUsersLogController@getType');
    //抖音抓取订单详情
    $api->get('catchDouyinList', 'CatchDouyinOrderController@index');
    $api->put('catchDouyin', 'CatchDouyinOrderController@save');
    $api->get('catchDouyin/{id}', 'CatchDouyinOrderController@show');
    $api->put('catchDouyinThree', 'CatchDouyinOrderController@catchDouyinThree');
    $api->get('getCatchStatus', 'CatchDouyinOrderController@getDouYInOrderStatus');
    // 抖音抓单 商品修改
    $api->put('catchOrderEditGoods', 'CatchDouyinOrderController@catchOrderEditGoods');
    // 拼多多 店铺抓取订单详情
    $api->get('catchPddList', 'CatchPddOrderController@index');
    $api->put('catchPdd', 'CatchPddOrderController@save');
    $api->get('catchPdd/{id}', 'CatchPddOrderController@show');
    $api->put('catchPddThree', 'CatchPddOrderController@catchPddThree');  // 提交到第三方
    $api->get('getCatchPddStatus', 'CatchPddOrderController@getPddOrderStatus'); // 订单状态显示
    // 抖音抓单 商品修改
    $api->put('catchPddOrderEditGoods', 'CatchPddOrderController@catchOrderEditGoods');
    // 历史订单查询
    $api->get('orderHistoryList', 'OrderHistoryController@index');
    // 抖音订单标记
    $api->get('catchDouyinSignList', 'CatchDouyinSignController@index');
    $api->post('catchDouyinSign', 'CatchDouyinSignController@store');
    $api->put('catchDouyinSign', 'CatchDouyinSignController@save');
    $api->get('catchDouyinSign/{id}', 'CatchDouyinSignController@show');
    $api->get('catchDouyinSign', 'CatchDouyinSignController@getStatus');
    // 订单标记
    $api->get('orderSignList', 'OrderSignController@index');
    $api->get('orderSignListAll', 'OrderSignController@indexAll');
    $api->post('orderSign', 'OrderSignController@store');
//    $api->put('orderSign', 'OrderSignController@save');
//    $api->get('orderSign/{id}', 'OrderSignController@show');
//    $api->get('orderSign', 'OrderSignController@getStatus');
    // bachSignAll
//    $api->put('bachSignAll', 'OrderSignController@bachSignAll');

    // 数据统计
    $api->get('getSevenDatas', 'CountOrderController@getDatas'); // 最近七天内的数据 总的数据

    $api->get('getStatistics', 'CountOrderController@getStatistics');
    $api->get('getOrderDatas', 'CountOrderController@getOrderDatas');

    $api->get('getOneDistAndProduct', 'CountOrderController@getOneDistAndProduct'); // 产品 代理的具体数据 单天
    $api->get('getSevenDistAndProduct', 'CountOrderController@getSevenDistAndProduct'); // 最近七天 产品占比数据
    $api->get('getOneOrTwo', 'CountOrderController@staticAll'); // 本月和上月的数据
    $api->get('getTodayData', 'CountOrderController@getTodayData'); // 今天的数据
    // 充值
    $api->get('getPayUrl', 'PayController@createPayUrl');
    // 省市区地址
    $api->post('getProvinceAndCityOptionsList', 'AddressController@provinceAndCity');
    $api->post('getProvinceAndCityAndAreaOptionsList', 'AddressController@provinceAndCityAndArea');
    $api->get('getProvince', 'AddressController@getProvinces');
    $api->get('getCity', 'AddressController@getCitys');
    $api->get('getAreas', 'AddressController@getAreas');
//    新的省市区,做三级联动
    $api->get('shltProvinceOptionsList', 'ShltAddressCodeController@provinces');
    $api->get('shltCityOptionsList', 'ShltAddressCodeController@citys');
    $api->get('shltAreaOptionsList', 'ShltAddressCodeController@areas');
    // 省市区地址的设置
    $api->get('setAddressList', 'SetAddressController@index');
    $api->post('setAddress', 'SetAddressController@store');
    $api->put('setAddress', 'SetAddressController@save');
    $api->get('setAddress/{id}', 'SetAddressController@show');
    $api->get('setAddress', 'SetAddressController@getStatus');
    $api->delete('setAddress/{id}', 'SetAddressController@destroy');
    $api->get('getAllAddress', 'SetAddressController@getAllAddress');
    // 小程序  轮播图
    $api->get('smilappLunList', 'SmilappLunController@index');
    $api->post('smilappLun', 'SmilappLunController@store');
    // $api->put('smilappLun', 'SmilappLunController@save');
    $api->post('smilappLunEdit', 'SmilappLunController@save');
    $api->get('smilappLun/{id}', 'SmilappLunController@show');
    $api->get('smilappLun', 'SmilappLunController@getStatus');
    $api->delete('smilappLun/{id}', 'SmilappLunController@destroy');
    $api->post('smilappLunStatus/{id}', 'SmilappLunController@updateStatus');
    // 小程序 类目
    $api->get('smilappCategoryList', 'SmilappCategoryController@index');
    $api->post('smilappCategory', 'SmilappCategoryController@store');
    $api->put('smilappCategory', 'SmilappCategoryController@save');
    $api->get('smilappCategory/{id}', 'SmilappCategoryController@show');
    $api->get('smilappCategory', 'SmilappCategoryController@getStatus');
    $api->delete('smilappCategory/{id}', 'SmilappCategoryController@destroy');
    $api->post('smilappCategoryStatus/{id}', 'SmilappCategoryController@updateStatus');
    // 小程序 宣传页
    $api->get('smilappFlyerList', 'SmilappFlyerController@index');
    $api->post('smilappFlyer', 'SmilappFlyerController@store');
    $api->put('smilappFlyer', 'SmilappFlyerController@save');
    $api->get('smilappFlyer/{id}', 'SmilappFlyerController@show');
    $api->get('smilappFlyer', 'SmilappFlyerController@getStatus');
    $api->delete('smilappFlyer/{id}', 'SmilappFlyerController@destroy');
    $api->post('smilappFlyerStatus/{id}', 'SmilappFlyerController@updateStatus');
    // 小程序 客服图片
    $api->get('smilappKefuList', 'SmilappKefuController@index');
    $api->post('smilappKefu', 'SmilappKefuController@store');
    $api->put('smilappKefu', 'SmilappKefuController@save');
    $api->get('smilappKefu/{id}', 'SmilappKefuController@show');
    $api->get('smilappKefu', 'SmilappKefuController@getStatus');
    $api->delete('smilappKefu/{id}', 'SmilappKefuController@destroy');
    $api->post('smilappKefuStatus/{id}', 'SmilappKefuController@updateStatus');
    // 小程序 告知书
    $api->get('smilappNoticeList', 'SmilappNoticeController@index');
    $api->post('smilappNotice', 'SmilappNoticeController@store');
    $api->put('smilappNotice', 'SmilappNoticeController@save');
    $api->get('smilappNotice/{id}', 'SmilappNoticeController@show');
    $api->get('smilappNotice', 'SmilappNoticeController@getStatus');
    $api->delete('smilappNotice/{id}', 'SmilappNoticeController@destroy');
    $api->post('smilappNoticeStatus/{id}', 'SmilappNoticeController@updateStatus');
    // 商品告知书
    $api->get('goodsNoticeList', 'GoodsNoticeController@index');
    $api->post('goodsNotice', 'GoodsNoticeController@store');
    $api->put('goodsNotice', 'GoodsNoticeController@save');
    $api->get('goodsNotice/{id}', 'GoodsNoticeController@show');
    $api->get('goodsNotice', 'GoodsNoticeController@getStatus');
    $api->delete('goodsNotice/{id}', 'GoodsNoticeController@destroy');
    $api->post('goodsNoticeStatus/{id}', 'GoodsNoticeController@updateStatus');
    // 意见反馈
    $api->get('smailAppYijianList', 'SmailAppYijianController@index');
    $api->post('smailAppYijian', 'SmailAppYijianController@store');
    $api->put('smailAppYijian', 'SmailAppYijianController@save');
    $api->get('smailAppYijian/{id}', 'SmailAppYijianController@show');
    $api->get('smailAppYijian', 'SmailAppYijianController@getStatus');
    $api->delete('smailAppYijian/{id}', 'SmailAppYijianController@destroy');
    $api->post('smailAppYijianStatus/{id}', 'SmailAppYijianController@updateStatus');
    // 在线客服 和 客服400 电话设置
    $api->get('kefuConfigList', 'KefuConfigController@index');
    $api->post('kefuConfig', 'KefuConfigController@store');
    $api->put('kefuConfig', 'KefuConfigController@save');
    $api->get('kefuConfig/{id}', 'KefuConfigController@show');
    $api->get('kefuConfig', 'KefuConfigController@getStatus');
    $api->delete('kefuConfig/{id}', 'KefuConfigController@destroy');
    // 商品转单
    $api->get('goodsZList', 'GoodsZController@index');
    $api->post('goodsZ', 'GoodsZController@store');
    $api->put('goodsZ', 'GoodsZController@save');
    $api->get('goodsZ/{id}', 'GoodsZController@show');
    $api->get('goodsZ', 'GoodsZController@getStatus');
    $api->delete('goodsZ/{id}', 'GoodsZController@destroy');
    // 商品转单后短信发送信息
    $api->get('smsZList', 'SendConfZController@index');
    $api->post('smsZ', 'SendConfZController@store');
    $api->put('smsZ', 'SendConfZController@save');
    $api->get('smsZ/{id}', 'SendConfZController@show');
    $api->get('smsZ', 'SendConfZController@getStatus');
    $api->delete('smsZ/{id}', 'SendConfZController@destroy');

    $api->post('orders/remarkIt', 'OrdersRemark\IndexController@add');
    $api->get('orders/remarkLogs', 'OrdersRemark\IndexController@remarkLogs');
//前端通过ip138抓取回来的sku靓号归属地保存
    $api->post('skumarkRemarkApiReturn', 'Orders\HandlesController@ip138SkumarkAreaApiBackSave');
    $api->get('orders/skuNumberAreaApiReturn', 'Orders\HandlesController@getSkuArea');
    //   选号下单
//    // 获取手机号与getPhone调用一样,只是这接口不用权限
    $api->get('orders/selectPhoneOptionsList', 'Orders\HandlesController@getSelectNumber');
    // 本地选号下单
    $api->get('orders/selectPhoneOptionsListTwo', 'Orders\HandlesController@getSelectNumberTwo');
    $api->get('orders/goodsOptionsList', 'GoodsController@index');
    $api->post('orders/selectPhoneSubmit', 'OrdersController@selectPhoneSubmit');
    $api->get('orders/logistics', 'Orders\LogisticsController@getTimeline');
//    客服模块
    $api->put('service/setting', 'Service\IndexController@setting');
    $api->get('service/index', 'Service\IndexController@index');
    $api->post('service/online', 'Service\IndexController@online');
    $api->get('service/assignReport', 'Service\IndexController@assignReport');
//    抢单通知
    $api->get('service/robNotification', 'Service\IndexController@robNotification');
    $api->get('service/servicesOptionsList', 'Service\IndexController@assignServiceOptionsList');
    $api->post('service/receive', 'Service\IndexController@receive');
    $api->post('service/editAssignService', 'Service\IndexController@editAssignService');
    $api->post('service/assign', 'Service\IndexController@assign');
    $api->post('service/randomAssign', 'Service\IndexController@randomAssign');
//    $api->get('service/works', 'Service\IndexController@workList');
    $api->post('service/logs/add', 'Service\LogsController@add');
    $api->get('service/logs/index', 'Service\LogsController@index');

    $api->get('ordersLabel/index', 'Orders\LabelController@index');
    $api->post('newLabel', 'Orders\LabelController@add');
    $api->put('ordersLabel/edit', 'Orders\LabelController@edit');
    $api->delete('ordersLabel/del/{id}', 'Orders\LabelController@del');
//    外呼记录看
    $api->get('serviceCall/ordersLogs', 'Service\CallController@index');
//外呼任务
    $api->post('callSendMsgApiReturn', 'Service\SendMsgController@saveSendMsg');
//    外呼记录推送接收
    $api->post('callPhoneResultApiReturn', 'Service\CallController@updateCallPhoneInfo');
    $api->get('callTaskOptionsList', 'Service\CallTaskController@callTaskOptionsList');
    $api->get('serviceCallTask/index', 'Service\CallTaskController@index');
    $api->post('serviceCallTask/add', 'Service\CallTaskController@add');
    $api->put('serviceCallTask/edit', 'Service\CallTaskController@edit');
    $api->delete('serviceCallTask/del/{id}', 'Service\CallTaskController@del');
    $api->post('serviceCallTask/import', 'Service\CallTaskController@importExcel');
//    外呼大厅
    $api->get('serviceCallTask/hall', 'Service\CallTaskController@hall');
    $api->get('serviceCallTask/doCall', 'Service\CallTaskController@getCallTaskOrder');
    $api->post('serviceCallTask/sendTplSms', 'Service\CallTaskController@sendTplSms');
    $api->get('serviceCallTask/logs', 'Service\CallTaskController@getCallTaskLogs');
    $api->get('serviceCallTask/people', 'Service\CallController@peopleReport');
//    财务返费模块
    $api->get('rebate/index', 'Rebate\IndexController@index');
    $api->put('rebate/edit', 'Rebate\IndexController@edit');
    $api->post('rebate/add', 'Rebate\IndexController@add');
    $api->put('rebate/changeStatus', 'Rebate\IndexController@changeStatus');

//    财务返费明细
    $api->get('rebate/details', 'Rebate\LogsController@index');
    $api->delete('rebateLogs/del/{id}', 'Rebate\LogsController@del');
    $api->put('rebateLogs/edit', 'Rebate\LogsController@edit');
//    $api->put('rebate/details/changeIsOnline', 'Rebate\IndexController@changeIsOnline');
//    $api->get('rebate/details', 'Rebate\IndexController@details');
//    $api->get('rebate/reviewReason', 'Rebate\IndexController@reviewReasonList');
//    $api->post('rebate/details/review', 'Rebate\IndexController@reviewIt');
//    $api->put('rebate/details/changeCardBalance', 'Rebate\IndexController@changeCardBalance');
    $api->get('commissionReturn/index', 'CommissionReturn\IndexController@index');
    $api->put('commissionReturn/edit', 'CommissionReturn\IndexController@edit');
    $api->put('commissionReturn/received', 'CommissionReturn\IndexController@received');
    $api->post('commissionReturn/add', 'CommissionReturn\IndexController@add');
    $api->delete('commissionReturn/del/{id}', 'CommissionReturn\IndexController@del');

    $api->get('commissionReturnLogs/index', 'CommissionReturn\LogsController@index');
    $api->put('commissionReturnLogs/edit', 'CommissionReturn\LogsController@edit');
//    $api->post('commissionReturnLogs/add', 'CommissionReturn\LogsController@add');
    $api->delete('commissionReturnLogs/del/{id}', 'CommissionReturn\LogsController@del');

//    合同模块
    $api->get('contract/index', 'Contract\IndexController@index');
    $api->post('contract/add', 'Contract\IndexController@add');
    $api->put('contract/edit', 'Contract\IndexController@edit');
    $api->delete('contract/del/{id}', 'Contract\IndexController@del');
//   主播模块
    $api->get('anchor/index', 'Anchor\IndexController@index');
    $api->post('anchor/index/add', 'Anchor\IndexController@add');
    $api->put('anchor/index/edit', 'Anchor\IndexController@edit');
    $api->put('anchor/index/changeStatus', 'Anchor\IndexController@changeStatus');
    $api->delete('anchor/index/del/{id}', 'Anchor\IndexController@del');
    $api->get('anchor/index/anchorOptionsList', 'Anchor\IndexController@anchorList');
//    主播下的达人
    $api->get('anchor/author', 'Anchor\AuthorController@index');
    $api->post('anchor/author/add', 'Anchor\AuthorController@add');
    $api->put('anchor/author/edit', 'Anchor\AuthorController@edit');
    $api->put('anchor/author/changeStatus', 'Anchor\AuthorController@changeStatus');
    $api->delete('anchor/author/del/{id}', 'Anchor\AuthorController@del');
    $api->get('anchor/author/getOptionsList', 'Anchor\AuthorController@optionList');
//直播类型
    $api->get('anchor/type', 'Anchor\TypeController@index');
    $api->post('anchor/type/add', 'Anchor\TypeController@add');
    $api->put('anchor/type/edit', 'Anchor\TypeController@edit');
    $api->put('anchor/type/changeStatus', 'Anchor\TypeController@changeStatus');
    $api->delete('anchor/type/del/{id}', 'Anchor\TypeController@del');
    $api->get('anchor/type/typeOptionsList', 'Anchor\TypeController@typeList');
//直播打卡
    $api->get('anchor/works', 'Anchor\WorksController@index');
    $api->get('anchor/works/logs', 'Anchor\WorksController@logs');
    $api->post('anchor/works/add', 'Anchor\WorksController@add');
    $api->post('anchor/works/cost', 'Anchor\WorksController@cost');
    $api->put('anchor/works/edit', 'Anchor\WorksController@edit');

    $api->delete('anchor/works/del/{id}', 'Anchor\WorksController@del');
    $api->put('anchor/works/del', 'Anchor\WorksController@del');
    $api->post('anchor/works/offLine', 'Anchor\WorksController@offLine');
    $api->post('anchor/works/editTimes', 'Anchor\WorksController@editTimes');
    $api->get('anchor/stats', 'Anchor\StatsController@index');
    $api->post('anchor/stats/details', 'Anchor\StatsController@details');
//    小旗配置
    $api->get('taggingConfig/index', 'TaggingConfigController@index');
    $api->post('taggingConfig/add', 'TaggingConfigController@add');
    $api->put('taggingConfig/edit', 'TaggingConfigController@edit');
    $api->delete('taggingConfig/del/{id}', 'TaggingConfigController@del');
    // 标旗
    $api->get('getTaggingOptionsList', 'TaggingConfigController@getTagging');
    // 存量业务
    $api->get('confPageStockList', 'Stock\StockPageConfController@index');
    $api->post('confPageStock', 'Stock\StockPageConfController@store');
    $api->put('confPageStock', 'Stock\StockPageConfController@save');
    $api->get('confPageStock/{id}', 'Stock\StockPageConfController@show');
    $api->get('confPageStock', 'Stock\StockPageConfController@getStatus');
    $api->delete('confPageStock/{id}', 'Stock\StockPageConfController@destroy');
    // 回传配置
    $api->get('stockBackList', 'Stock\StockBackController@index');
    $api->post('stockBack', 'Stock\StockBackController@store');
    $api->put('stockBack', 'Stock\StockBackController@save');
    $api->get('stockBack/{id}', 'Stock\StockBackController@show');
    $api->get('stockBack', 'Stock\StockBackController@getStatus');
    $api->delete('stockBack/{id}', 'Stock\StockBackController@destroy');
    // 手机号导入
    $api->get('stockPhoneCheckList', 'Stock\StockPhoneCheckController@index');
    $api->post('stockPhoneCheck', 'Stock\StockPhoneCheckController@store');
    $api->put('stockPhoneCheck', 'Stock\StockPhoneCheckController@save');
    $api->get('stockPhoneCheck/{id}', 'Stock\StockPhoneCheckController@show');
    $api->get('stockPhoneCheck', 'Stock\StockPhoneCheckController@getStatus');
    $api->delete('stockPhoneCheck/{id}', 'Stock\StockPhoneCheckController@destroy');
    // 手机号验证后跳转
    $api->get('stockPhoneCheckJumpList', 'Stock\StockPhoneCheckJumpController@index');
    $api->post('stockPhoneCheckJump', 'Stock\StockPhoneCheckJumpController@store');
    $api->put('stockPhoneCheckJump', 'Stock\StockPhoneCheckJumpController@save');
    $api->get('stockPhoneCheckJump/{id}', 'Stock\StockPhoneCheckJumpController@show');
    $api->get('stockPhoneCheckJump', 'Stock\StockPhoneCheckJumpController@getStatus');
    $api->delete('stockPhoneCheckJump/{id}', 'Stock\StockPhoneCheckJumpController@destroy');
    // 查询所有的
    $api->get('confPageStockAllList', 'Stock\StockPageConfController@listss');
    //
    $api->get('StockBackType', 'Stock\StockPageConfController@getType');
    // 通道查询
    $api->get('confWay', 'Stock\StockWayController@listss');
    // way_channel
    $api->get('wayChannelList', 'Stock\StockWayChannelController@index');
    $api->post('wayChannel', 'Stock\StockWayChannelController@store');
    $api->put('wayChannel', 'Stock\StockWayChannelController@save');
    $api->get('wayChannel/{id}', 'Stock\StockWayChannelController@show');
    $api->get('wayChannel', 'Stock\StockWayChannelController@getStatus');
    $api->delete('wayChannel/{id}', 'Stock\StockWayChannelController@destroy');
    // way_order
    $api->get('stockOrderList', 'Stock\StockOrderController@index');
    $api->post('stockOrder', 'Stock\StockOrderController@store');
    $api->put('stockOrder', 'Stock\StockOrderController@save');
    $api->get('stockOrder/{id}', 'Stock\StockOrderController@show');
    $api->get('stockOrder', 'Stock\StockOrderController@getStatus');
    $api->delete('stockOrder/{id}', 'Stock\StockOrderController@destroy');
    $api->get('stockOrderStatus', 'Stock\StockOrderController@getStatus');
    // 统计  存量订单的统计
    $api->get('stockStistictList', 'Stock\StockStistictController@index');
    $api->post('stockStistict', 'Stock\StockStistictController@store');
    $api->put('stockStistict', 'Stock\StockStistictController@save');
    $api->get('stockStistict/{id}', 'Stock\StockStistictController@show');
    $api->get('stockStistict', 'Stock\StockStistictController@getStatus');
    $api->delete('stockStistict/{id}', 'Stock\StockStistictController@destroy');
    $api->get('stockStistictStatus', 'Stock\StockStistictController@getStatus');
    // 图标数据
    $api->get('getChart', 'CountOrderController@getChart');
    $api->get('getPieChart', 'CountOrderController@getPieChart');
    $api->get('getLineChart', 'CountOrderController@getLineChart');
    // 财务佣金
    // 财务佣金上传
    $api->post('financeCommissionSet', 'CommissionController@import'); // 上传操作
    $api->get('financeCommissionList', 'CommissionController@index'); // 列表
    $api->get('financeCommissionAgenList', 'CommissionCountController@index'); // 代理佣金详情
    $api->get('financeCommissionAgenOneList', 'CommissionOneCountController@index'); // 代理单个佣金详情
    $api->get('financeCommissionExcel', 'CommissionOneCountController@explodeDetail'); // 佣金生成表格
    // 查看物流信息
    $api->get('orderExpress', 'OrderExpressController@getShow'); // 佣金生成表格
    $api->get('getExpressStatus', 'OrderExpressController@getExpressStatus'); // 物流短信状态
    // 短信发送配置
    $api->get('messageSendExpressConfList', 'MessageSendConfExpressController@index');
    $api->post('messageSendConfExpress', 'MessageSendConfExpressController@store');
    $api->put('messageSendConfExpress', 'MessageSendConfExpressController@save');
    $api->get('messageSendConfExpress/{id}', 'MessageSendConfExpressController@show');
    $api->delete('messageSendConfExpress/{id}', 'MessageSendConfExpressController@destroy');
    // 商品信息流页面配置
    $api->get('confPageGoodsList', 'Information\GoodsPageConfController@index');
    $api->post('confPageGoods', 'Information\GoodsPageConfController@store');
    $api->put('confPageGoods', 'Information\GoodsPageConfController@save');
    $api->get('confPageGoods/{id}', 'Information\GoodsPageConfController@show');
    $api->get('confPageGoods', 'Information\GoodsPageConfController@getStatus');
    $api->delete('confPageGoods/{id}', 'Information\GoodsPageConfController@destroy');

    // 查询所有的
    $api->get('confPageGoodsAllList', 'Information\GoodsPageConfController@listss');
    // 小程序列表配置
    $api->get('confPageAppList', 'Information\AppPageConfController@index');
    $api->post('confPageApp', 'Information\AppPageConfController@store');
    $api->put('confPageApp', 'Information\AppPageConfController@save');
    $api->get('confPageApp/{id}', 'Information\AppPageConfController@show');
    $api->get('confPageApp', 'Information\AppPageConfController@getStatus');
    $api->delete('confPageApp/{id}', 'Information\AppPageConfController@destroy');
    // 列表查询
    $api->get('informationOrderList', 'Information\GoodsOrderController@index');
    $api->get('informationOrder', 'Information\GoodsOrderController@save');
    // 号码本地化配置
    $api->get('goodsPhoneConfigList', 'GoodsPhone\GoodsPhoneConfigController@index');
    $api->post('goodsPhoneConfig', 'GoodsPhone\GoodsPhoneConfigController@store');
    $api->put('goodsPhoneConfig', 'GoodsPhone\GoodsPhoneConfigController@save');
    $api->get('goodsPhoneConfig/{id}', 'GoodsPhone\GoodsPhoneConfigController@show');
    $api->delete('goodsPhoneConfig/{id}', 'GoodsPhone\GoodsPhoneConfigController@destroy'); // 订单没有删除
    // 号码本地化
    $api->get('goodsPhoneList', 'GoodsPhone\GoodsPhoneController@index');
    $api->post('goodsPhone', 'GoodsPhone\GoodsPhoneController@store');
    $api->put('goodsPhone', 'GoodsPhone\GoodsPhoneController@save');
    $api->get('goodsPhone/{id}', 'GoodsPhone\GoodsPhoneController@show');
    $api->delete('goodsPhone/{id}', 'GoodsPhone\GoodsPhoneController@destroy'); // 订单没有删除
    // 财务佣金的列表
    // 生成的财务佣金的表格
    // 短信转单设置
    // 产品 商品 商品分销
    // 上游 电信接口
    // 短信 导入批量发送短信 按订单发送短信 中间表  是否发送 时间限制 几点到几点发送
    // 数据抓取 抖音 拼多多 淘宝 天猫  地址
    // 订单 本系统订单号 生产系统订单号 下游系统订单号 导入导出 order order_info order_status 记录的是订单的时间 订单status time
    // 订单打印 随后对接 前端的 这个只是订单的查询
    // 技术: 队列 swoole
    // 队列的话 1: 将订单推送到上游或下游  2: 短信发送(也是会比较频繁) 3:数据抓取(会比较频繁) 4:
    //队列 1: 将订单提交或推送,导入导出 2:
});

$router->group(['prefix' => 'dev-api', 'namespace' => 'Commit', 'middleware' => 'XSSFilter|adminLogin|adminRole|AdminRoust'], function ($api) {
    //字典数据
    $api->get('system/dict/index', 'DictDatarController@listIt');
    $api->get('system/dict/typeOptions', 'DictDatarController@typeOptions');
    $api->post('system/dict/add', 'DictDatarController@add');
    $api->put('system/dict/edit', 'DictDatarController@edit');
    $api->put('system/dict/changeStatus', 'DictDatarController@changeStatus');
    $api->post('system/dict/config', 'DictConfigController@add');


    $api->get('dictData/{type}', 'DictDatarController@index');
    $api->get('dictSingleTypeValue', 'DictDatarController@singleTypeValue');
    //配置数据
    $api->get('configData/{type}', 'ConfigDataController@index');
    //treeselect
    $api->get('getRouters', 'MenuController@getRouters');
    $api->get('treeselect', 'MenuController@getTree');
    // 菜单
    $api->get('menuList', 'MenuController@index');
    $api->post('menu', 'MenuController@store');
    $api->put('menu', 'MenuController@save');
    $api->get('menu/{id}', 'MenuController@show');
    $api->delete('menu/{id}', 'MenuController@destroy');
    //部门
    $api->get('deptList', 'DeptController@index');
    $api->get('deptOptionsList', 'DeptController@optionsList');
    $api->get('deptUsersOptionsList', 'DeptController@usersOptionsList');
    $api->get('deptListExclude/{id}', 'DeptController@excludeIndex');
    $api->post('dept', 'DeptController@store');
    $api->put('dept', 'DeptController@save');
    $api->get('dept/{id}', 'DeptController@show');
    $api->get('deptTreeselect', 'DeptController@deptTreeselect'); //部门权限
    $api->get('roleDeptTreeselect/{id}', 'DeptController@show'); //根据角色 查看部门
    $api->delete('dept/{id}', 'DeptController@destroy');
    // 权限设置
    $api->get('roleList', 'RoleController@index');
    $api->get('roleListExclude/{id}', 'RoleController@excludeIndex');
    $api->post('role', 'RoleController@store');
    $api->put('role', 'RoleController@save');
    $api->get('role/{id}', 'RoleController@show');
    $api->delete('role/{id}', 'RoleController@destroy');

    //岗位
    $api->get('positionList', 'PositionController@index');
    $api->post('position', 'PositionController@store');
    $api->put('position', 'PositionController@save');
    $api->get('position/{id}', 'PositionController@show');
    $api->delete('position/{id}', 'PositionController@destroy');
    $api->get('getAppH5Config', 'GetConfigController@index');
    // 代理分组
    $api->get('distClassList', 'DistClassController@index');
    $api->get('distClassListExclude/{id}', 'DistClassController@excludeIndex');
    $api->post('distClass', 'DistClassController@store');
    $api->put('distClass', 'DistClassController@save');
    $api->get('distClass/{id}', 'DistClassController@show');
    $api->get('distClassTreeselect', 'DistClassController@deptTreeselect'); //部门权限
    $api->get('roledistClassTreeselect/{id}', 'DistClassController@show'); //根据角色 查看部门
    $api->delete('distClass/{id}', 'DistClassController@destroy');
    // 存量页面分组
    $api->get('pageClassList', 'PageClassController@index');
    $api->get('pageClassListExclude/{id}', 'PageClassController@excludeIndex');
    $api->post('pageClass', 'PageClassController@store');
    $api->put('pageClass', 'PageClassController@save');
    $api->get('pageClass/{id}', 'PageClassController@show');
    $api->get('pageClassTreeselect', 'PageClassController@deptTreeselect'); //部门权限
    $api->get('rolePageClassTreeselect/{id}', 'PageClassController@show'); //根据角色 查看部门
    $api->delete('pageClass/{id}', 'PageClassController@destroy');
});
$router->group(['prefix' => 'api/v1', 'namespace' => 'Api', 'middleware' => 'XSSFilter|AdminRoust'], function ($api) {
    $api->post('orderSubmit', 'OrderController@orderSubmit'); //同步订单
    $api->post('submit', 'OrderController@submit');
    //获取抖音推送过来的订单
    $api->post('catchOrder', 'CatchOrderController@pushOrder');
    $api->get('catchOrder', 'CatchOrderController@pushOrder');
    $api->get('telecomPushStatus', 'TelecomController@pushOrderStatus');
    $api->post('telecomPushStatus', 'TelecomController@pushOrderStatus');
    $api->post('telecomOldPushStatus', 'TelecomOldController@pushOrderStatus');
    $api->get('telecomOldPushStatus', 'TelecomOldController@pushOrderStatus');
    // 短信推送信息
    $api->post('replyPushData', 'SmsPushController@replyPushResult');
    $api->post('sendPushResult', 'SmsPushController@sendPushResult');
    //   短信推送信息
    $api->post('receivePushSendResult', 'SmsPushController@receivePushSendResult');
    $api->post('receivePushTplResult', 'SmsPushController@receivePushTplResult');
    //广东电信推送信息
    $api->get('gdTelecomPushData', 'TelecomGDController@pushOrderStatus');
    $api->post('gdTelecomPushData', 'TelecomGDController@pushOrderStatus');
    //感叹号推送信息
    $api->get('gdMobilePushData', 'MobileGDController@pushOrderStatus');
    $api->post('gdMobilePushData', 'MobileGDController@pushOrderStatus');
    $api->get('gdPushData', 'GanPushController@pushOrderStatus');
    $api->post('gdPushData', 'GanPushController@pushOrderStatus');
    // 云锐物联网 推送消息
    $api->get('gdThingPushData', 'ThingYuRuiController@pushOrderStatus');
    $api->post('gdThingPushData', 'ThingYuRuiController@pushOrderStatus');
    // 移动总公司  // 集运 移动
    $api->get('yiDongHead', 'YiDongHeadController@pushOrderStatus');
    $api->post('yiDongHead', 'YiDongHeadController@pushOrderStatus');
    // 抖音回调
    $api->get('douyinPAy', 'Pay\DouYInPayController@pushOrderStatus');
    $api->post('douyinPAy', 'Pay\DouYInPayController@pushOrderStatus');
    // 诺宇回调
    $api->get('nuoYuPush', 'Push\NuoYuController@pushOrderStatus');
    $api->post('nuoYuPush', 'Push\NuoYuController@pushOrderStatus');
    // 联通回调
    $api->get('lianTongPush', 'Customer\LianTongController@pushOrderStatus');
    $api->post('lianTongPush', 'Customer\LianTongController@pushOrderStatus');
    //广东电信推送信息 客户
    $api->get('gdATelecomPushData', 'TelecomGDAController@pushOrderStatus');
    $api->post('gdATelecomPushData', 'TelecomGDAController@pushOrderStatus');
    // pdd获取code
    $api->get('getPddCode', 'getParams\PddController@getPddCode');
    // 拼多多推送过来的订单
    $api->post('catchPddOrder', 'CatchOrder\CatchPddOrderController@pushOrder');
    $api->get('catchPddOrder', 'CatchOrder\CatchPddOrderController@pushOrder');
    // 快手获取code
    // pdd获取code
    $api->get('getKwaiCode', 'getParams\KwaiController@getCode');
    $api->post('getKwaiCode', 'getParams\KwaiController@getCode');
    // 快手推送过来的订单
    $api->post('catchKwaiOrder', 'CatchOrder\CatchKwaiOrderController@pushOrder');
    $api->get('catchKwaiOrder', 'CatchOrder\CatchKwaiOrderController@pushOrder');
    // 江山推送过来的订单
    $api->post('JiangSanOrder', 'CustomerOwn\JiangSanController@pushOrder');
    $api->get('JiangSanOrder', 'CustomerOwn\JiangSanController@pushOrder');
    // 欣网推送过来的订单
    $api->post('XinWangOrder', 'XinWangController@pushOrderStatus');
    $api->get('XinWangOrder', 'XinWangController@pushOrderStatus');
    // 湖南电信推送过来的订单
    $api->post('HuNanTelOrder', 'Customer\HuNanTelecomController@pushOrderStatus');
    $api->get('HuNanTelOrder', 'Customer\HuNanTelecomController@pushOrderStatus');
    // 物流信息推送
    $api->get('ExpressPush', 'Push\ExpressController@pushOrderStatus');
    $api->post('ExpressPush', 'Push\ExpressController@pushOrderStatus');
    // 湖南电信推送过来的订单
    $api->post('ZheJiangTaiZhouTelecom', 'Customer\ZheJiangTaiZhouTelecomController@pushOrderStatus');
    $api->get('ZheJiangTaiZhouTelecom', 'Customer\ZheJiangTaiZhouTelecomController@pushOrderStatus');
    // 纵横推送过来的订单
    $api->post('ZhongHengTelecom', 'CustomerOwn\ZhongHengController@pushOrder');
    $api->get('ZhongHengTelecom', 'CustomerOwn\ZhongHengController@pushOrder');
    // 抖音 推送到 抖店云的订单
    $api->post('pushDouDianYun', 'CustomerOwn\CatchOrderController@pushOrder');
    $api->get('pushDouDianYun', 'CustomerOwn\CatchOrderController@pushOrder');
    // 抖店云推送到 系统的订单
    $api->post('pushDouYinOrder', 'CatchOrder\PushDouYinOrderController@pushOrder');
    $api->get('pushDouYinOrder', 'CatchOrder\PushDouYinOrderController@pushOrder');
});
$router->group(['prefix' => 'api/v1', 'namespace' => 'Api', 'middleware' => 'XSSFilter|AdminRoust'], function ($api) {
    $api->post('getSelectNumber', 'GoodsController@getSelectNumber'); //查询号码
    $api->post('getSelectNumberTwo', 'GoodsController@getSelectNumberTwo'); //查询号码 two
    $api->get('getGoodsAll', 'GoodsController@getGoodsList');
    $api->get('getGoods', 'GoodsController@getGoods'); //获取商品信息
    $api->get('getGoodsArea', 'GoodsController@getGoodsAddress'); // 获取地址
    $api->get('getOwnerGoods', 'GoodsController@getOwnerAddress'); // 获取归属地
    $api->get('getPhone', 'GoodsController@getSelectNumber'); // 获取手机号
    $api->get('getOrderDetail', 'OrderController@getOrderDetail'); // 获取手机号
    $api->get('getApiOrderDetail', 'OrderController@getApiOrderDetail'); // 根据订单号查询订单详情
    // 查询客服联系
    $api->post('getKefuPhone', 'GoodsController@getKefuPhone');
    // Api接口
    $api->post('purchaseOrder', 'OrderController@purchaseOrder');
    // 支付通知接口
    $api->post('wx_notify', 'wxPayNotifyController@wxnotify');
    $api->get('wx_notify', 'wxPayNotifyController@wxnotify');
    // 支付链接 externalOrderPush
    $api->post('externalOrderPush', 'OrderController@ganPurchaseOrder');
    // 百度链接
    $api->post('baiduPushTwo', 'OrderController@baiduPurchaseOrder');
    $api->get('baiduPushTwo', 'OrderController@baiduPurchaseOrder');
    // 抖音小程序登录
    $api->post('getSmailappUser', 'AppSmailLoginController@getSmailappUser'); //抖音登录
    $api->post('getSmailappUserDetail', 'AppSmailLoginController@getSmailappUserDetail'); //抖音登录
    $api->post('editOrdersStatus', 'OrderController@editOrdersStatus'); //抖音取消订单
    $api->post('editOrdersIsPay', 'OrderController@editOrdersIsPay'); //抖音取消订单
    // 微信小程序
    $api->post('getSmailappWenXinUser', 'WenXin\AppWenXinSmailLoginController@getSmailappUser');
    // 图片上传
    $api->post('appFileUpload', 'FileUploadController@fileUpload'); //
    // 意见反馈
    $api->post('submitYiJian', 'YiJianController@submitYijian');
    $api->post('getNotice', 'GoodsNoticeController@getGoodsNoticeList');
    // 小程序接口
    $api->post('getAppSelectNumber', 'AppGoodsController@getSelectNumber'); //查询号码
    $api->get('getAppGoodsAll', 'AppGoodsController@getGoodsList');
    $api->get('getAppGoods', 'AppGoodsController@getGoods'); //获取商品信息
    $api->get('getAppGoodsArea', 'AppGoodsController@getGoodsAddress'); // 获取地址
    $api->get('getAppOwnerGoods', 'AppGoodsController@getOwnerAddress'); // 获取归属地
    $api->get('getAppPhone', 'AppGoodsController@getSelectNumber'); // 获取手机号
    $api->post('getAppOrderDetail', 'OrderController@getAppOrderDetail'); // 获取手机号
    $api->post('purchaseAppOrder', 'OrderController@purchaseAppOrder');
    // 轮播图
    $api->get('getSmailappLun', 'AppSmailController@getSmailappLun'); // 轮播图
    $api->get('getSmailappCategory', 'AppSmailController@getSmailappCategory'); // 类目
    $api->get('getSmailappKefu', 'AppSmailController@getSmailappKefu'); // 客服
    $api->get('getSmailappNotice', 'AppSmailController@getSmailappNotice'); // 告示
    $api->get('getSmailappFlyer', 'AppSmailController@getSmailappFlyer'); // 宣传图

});
// 信息流
$router->group(['prefix' => 'api/v1', 'namespace' => 'Stock', 'middleware' => 'XSSFilter|AdminRoust'], function ($api) {
    $api->get('getPageConf', 'PageSendController@getPageConf'); //查询页面信息
    $api->post('sendSms', 'SubmitController@orderSend');
    $api->post('sendOrder', 'SubmitController@orderStock');
    /***新存量接口 ------------------------------------------- */
    $api->post('sendSmsNew', 'SubmitController@orderSendNew');
    $api->post('sendOrderNew', 'SubmitController@orderStockNew');
    /* 存量小程序 --------------------------------*/

    // 套餐列表
    $api->get('getAppStockAll', 'PageSendController@getAllPageConf');
    // 信息流列表
    $api->get('getAppListAll', 'PageSendController@getAppListAll');
    $api->get('getGoodsPageConf', 'PageSendController@getGoodsPageConf'); //查询页面信息
    // 存量订单
    $api->post('stockOrderSubmt', 'SubmitGoodsController@orderSubmt');
    // 下单修改
});

include_once(__DIR__ . '/xh.php');
